package com.arrcen.medicen.core.match.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 *
 */
@Data
@TableName("SYNC_TABLE_FIELD")
public class SyncTableFieldEntity implements Serializable {

    /**
     * SYNC_TABLE_ID
     */
    @ApiModelProperty(value = "SYNC_TABLE_FIELD_ID")
    @TableId(value = "SYNC_TABLE_FIELD_ID",type = IdType.INPUT)
    public Integer syncTableFieldId;

    @ApiModelProperty(value = "关联表的ID")
    @TableField("SYNC_TABLE_ID")
    public Integer syncTableId;

    @ApiModelProperty(value = "临时库字段名")
    @TableField("TMP_FIELD_NAME")
    public String tmpFieldName;

    @ApiModelProperty(value = "中心库字段名")
    @TableField("CEN_FIELD_NAME")
    public String cenFieldName;

    @ApiModelProperty(value = "接口字段名")
    @TableField("API_FIELD_NAME")
    public String apiFieldName;

    @ApiModelProperty(value = "操作类型,1表示关联的字段,2表示同步的字段,3表示需回写的字段")
    @TableField("OP_TYPE")
    public Integer opType;
}
